import Vue from 'vue';
import Vuex from 'vuex';
import mutations from './mutations.js';
import actions from './action.js';
import ajax from '../config/ajax.js';

Vue.use(Vuex);

const state = {
	count: 0,
	level: '第一周',
	itemNum: 1,
	allTime: 0,
	timer: '',
	girlPhoto:{"showapi_res_code":0,"showapi_res_error":"","showapi_res_body":{"ret_code":0,"pagebean":{"contentlist":[{"id":"bz\/qtdm\/61445.html","title":"\u4e16\u754c\u5f81\u670d\u8c0b\u7565\u4e4b\u661f\u52a8\u6f2b\u56fe\u7247","link":"\/dmbz\/qtdm\/61445.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161221\/1-161221145953,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61444.html","title":"\u8272\u5f69\u6d53\u90c1\u7684\u52a8\u6f2b\u7f8e\u7709\u56fe\u7247","link":"\/dmbz\/qtdm\/61444.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161221\/1-161221145912,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61443.html","title":"\u5c11\u5973\u52a8\u6f2b\u841d\u7403\u793e\u52a8\u6f2b\u7f8e\u5973\u56fe","link":"\/dmbz\/qtdm\/61443.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161221\/1-161221145S5,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61442.html","title":"\u7535\u51fb\u59ec\u52a8\u6f2b\u7f8e\u5973\u56fe","link":"\/dmbz\/qtdm\/61442.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161221\/1-161221145K5,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61417.html","title":"\u8fd9\u6837\u7b97\u662f\u50f5\u5c38\u5417\u6f2b\u753b\u58c1\u7eb8","link":"\/dmbz\/qtdm\/61417.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161220\/1-161220111150,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61416.html","title":"\u8fd9\u662f\u50f5\u5c38\u5417\u8fd9\u4e2a\u662f\u50f5\u5c38\u5417 \u52a8\u6f2b\u7f8e\u5973","link":"\/dmbz\/qtdm\/61416.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161220\/1-161220111107,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61415.html","title":"\u9752\u6625\u6d3b\u529b\u7f8e\u5c11\u5973\u63d2\u753b\u58c1\u7eb8","link":"\/dmbz\/qtdm\/61415.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161220\/1-161220110957,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61414.html","title":"\u5973\u751f\u4e07\u5c81\u53ef\u7231\u52a8\u6f2b\u58c1\u7eb8","link":"\/dmbz\/qtdm\/61414.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161220\/1-161220110917,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61413.html","title":"\u7eaf\u767d\u4ea4\u54cd\u66f2\u7f8e\u7fbd\u5929\u7fbd \u52a8\u6f2b\u7f8e\u5973","link":"\/dmbz\/qtdm\/61413.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161220\/1-161220110R6,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61412.html","title":"\u53d8\u6001\u738b\u5b50\u4e0e\u4e0d\u7b11\u732b\u52a8\u6f2b\u56fe\u7247","link":"\/dmbz\/qtdm\/61412.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161220\/1-161220110H6,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61411.html","title":"\u300a\u5951\u7ea6\u4e4b\u543b\u4e0e\u771f\u7ea2\u4e4b\u77b3\u300b\u52a8\u6f2b\u58c1\u7eb8","link":"\/dmbz\/qtdm\/61411.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161220\/1-161220110637,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61410.html","title":"\u300a\u547d\u8fd0\u5f85\u591c\u4e34\u300b\u9ad8\u6e05\u58c1\u7eb8","link":"\/dmbz\/qtdm\/61410.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161220\/1-161220110535,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61376.html","title":"\u672a\u6765\u65e5\u8bb0(\u6211\u59bb\u7531\u4e43)\u58c1\u7eb8","link":"\/dmbz\/qtdm\/61376.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161219\/1-161219121647,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61375.html","title":"\u51c9\u5bab\u6625\u65e5\u7684\u5fe7\u90c1\u7f8e\u5973","link":"\/dmbz\/qtdm\/61375.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161219\/1-161219121610,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61374.html","title":"\u79bb\u5730\u5e73\u7ebf\u6709\u591a\u8fdc\u58c1\u7eb8","link":"\/dmbz\/qtdm\/61374.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161219\/1-161219121501,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61333.html","title":"\u5f3a\u88ad\u9b54\u5973\u6027\u611f\u5c0f\u841d\u8389","link":"\/dmbz\/qtdm\/61333.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161218\/1-16121Q22U1,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61332.html","title":"\u300a\u591c\u660e\u524d\u7684\u7409\u7483\u8272\u300b\u52a8\u6f2b\u7f8e\u5973","link":"\/dmbz\/qtdm\/61332.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161218\/1-16121Q22K9,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61331.html","title":"\u5c11\u5973\u7684\u4e09\u56fd\u6f14\u4e49\u604b\u59ec\u65e0\u53cc","link":"\/dmbz\/qtdm\/61331.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161218\/1-16121Q22G3,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61330.html","title":"\u9f99\u4e0e\u864e\u6e05\u7eaf\u751c\u7f8e\u5c0f\u841d\u8389","link":"\/dmbz\/qtdm\/61330.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161218\/1-16121Q22637,c_fill,h_360,w_240.jpg"},{"id":"bz\/qtdm\/61329.html","title":"\u672a\u95fb\u82b1\u540d\u52a8\u6f2b\u58c1\u7eb8","link":"\/dmbz\/qtdm\/61329.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/allimg\/161218\/1-16121Q22554,c_fill,h_360,w_240.jpg"},{"id":"bz\/longmao\/39969.html","title":"\u9f99\u732b\u684c\u9762\u5927\u58c1\u7eb8\u9ad8\u6e05","link":"\/dmbz\/longmao\/39969.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/mmimg\/39\/39969\/39969_13,c_fill,h_360,w_240.jpg"},{"id":"bz\/longmao\/39971.html","title":"\u9f99\u732b\u56fe\u7247\u7535\u8111\u58c1\u7eb8","link":"\/dmbz\/longmao\/39971.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/mmimg\/39\/39971\/39971_13,c_fill,h_360,w_240.jpg"},{"id":"bz\/longmao\/39972.html","title":"\u9f99\u732b\u58c1\u7eb8\u9ad8\u6e05\u5927\u56fe","link":"\/dmbz\/longmao\/39972.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/mmimg\/39\/39972\/39972_43,c_fill,h_360,w_240.jpg"},{"id":"bz\/longmao\/39970.html","title":"\u9f99\u732b\u684c\u9762\u58c1\u7eb8 \u9ad8\u6e05","link":"\/dmbz\/longmao\/39970.html","img":"http:\/\/mimg.xmeise.com\/thumb\/m\/mmimg\/39\/39970\/39970_43,c_fill,h_360,w_240.jpg"}],"maxResult":"24"},"currentPage":1}},
	itemDetail: [{
		"topic_id": 20,
		"active_topic_id": 4,
		"type": "ONE",
		"topic_name": "题目一",
		"active_id": 1,
		"active_title": "欢乐星期五标题",
		"active_topic_phase": "第一周",
		"active_start_time": "1479139200",
		"active_end_time": "1482163200",
		"topic_answer": [{
			"topic_answer_id": 66,
			"topic_id": 20,
			"answer_name": "答案aaaa",
			"is_standard_answer": 0
		}, {
			"topic_answer_id": 67,
			"topic_id": 20,
			"answer_name": "答案bbbb",
			"is_standard_answer": 0
		}, {
			"topic_answer_id": 68,
			"topic_id": 20,
			"answer_name": "答案cccc",
			"is_standard_answer": 0
		}, {
			"topic_answer_id": 69,
			"topic_id": 20,
			"answer_name": "答案dddd",
			"is_standard_answer": 1
		}]
	}, {
		"topic_id": 21,
		"active_topic_id": 4,
		"type": "MORE",
		"topic_name": "题目二",
		"active_id": 1,
		"active_title": "欢乐星期五标题",
		"active_topic_phase": "第一周",
		"active_start_time": "1479139200",
		"active_end_time": "1482163200",
		"topic_answer": [{
			"topic_answer_id": 70,
			"topic_id": 21,
			"answer_name": "答案A",
			"is_standard_answer": 1
		}, {
			"topic_answer_id": 71,
			"topic_id": 21,
			"answer_name": "答案B",
			"is_standard_answer": 0
		}, {
			"topic_answer_id": 72,
			"topic_id": 21,
			"answer_name": "答案C",
			"is_standard_answer": 0
		}, {
			"topic_answer_id": 73,
			"topic_id": 21,
			"answer_name": "答案D",
			"is_standard_answer": 0
		}]
	}],
	answerid: {}
}

const store = new Vuex.Store({
	state,
	actions,
	mutations
});

export default store;